<!--简单显示单位-->
<template>
  <div v-if="unit_id">
    <image class="fixed-img-size" v-show="signal % 2 == 0" :src="unitImg" />
    <image class="fixed-img-size" v-show="signal % 2 != 0" :src="unitImg2" />
  </div>
</template>

<script>
export default {
  props: {
    unit_id: {},
    color: {
      type: String,
      default: "blue",
    },
    signal: {
      type: Number,
      default: 0,
    },
  },
  computed: {
    unitImg() {
      return this.$appHelper.getUnitImg(this.unit_id, this.color);
    },
    unitImg2() {
      return this.$appHelper.getUnitImg(this.unit_id, this.color, "_2");
    },
  },
};
</script>

<style>
</style>